<?php
include_once('admin_global.php');
$db=bn_database::getInstance();
$theme->add_block('body');
if($_POST['backup'])
$db->backup($_POST['chbox']);

if($_POST['restor'])
$db->restore($_FILES['file']);
?>
<fieldset style="border: 1px solid silver; padding: 7px;">
<legend><?= $lang[7] ?></legend>
<form method="post" enctype="multipart/form-data">
<?php
$db->get_table_list();
?>
<input type="submit" name="backup" id="backup" value="<?= $lang[7] ?>" class="button"/>
</form>
</fieldset>
<br />
<br />
<fieldset style="border: 1px solid silver; padding: 7px;">
<legend><?= $lang[8] ?></legend>
<form method="post" enctype="multipart/form-data">
<input type="file" size="50" name="file" id="file" class="input-text"/>
<input type="submit" name="restor" id="restor" value="<?= $lang[8] ?>" class="button" onclick="return confirm('<?= $lang[10] ?>')"/>
</form>
</fieldset>
<br />
<br />
<form method="post">
<input type="submit" name="reset" id="reset" value="<?= $lang[9] ?>" class="button" onclick="return confirm('<?= $lang[10] ?>')"/>
</form>
<?php
$theme->render();
?>